﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Obligatorio.DataAccess;
using System.Collections;

public partial class Products_Products : System.Web.UI.Page
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        GridView1.EnableDynamicData(typeof(Product));
    }
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ImageButton_Click1(object sender, ImageClickEventArgs e)
    {
        DetailsView1.Visible = true;
    }
    protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
    {
        DetailsView1.Visible = false;
        GridView1.DataBind();
    }
}